home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
gnu
/
flex
/
flexb237.zoo
/
diff3
< prev
next >
Wrap
Text File
|
1992-03-10
|
1KB
|
43 lines
Newsgroups: comp.sources.bugs
From: chip@tct.com (Chip Salzenberg)
Subject: Bug in flex 2.3.7, with fix
Date: Thu, 27 Feb 1992 20:35:00 GMT
Organization: TC Telemanagement, Clearwater, FL
There's a precedence bug in flex 2.3.7 scan.[lc]. Here's a fix.
(BTW, the bug showed up as a warning in GCC2. Thanks, RMS.)
Index: scan.l
***************
*** 188,192 ****
for ( i = strlen( (char *) nmdef ) - 1;
i >= 0 &&
! nmdef[i] == ' ' || nmdef[i] == '\t';
--i )
;
--- 188,192 ----
for ( i = strlen( (char *) nmdef ) - 1;
i >= 0 &&
! (nmdef[i] == ' ' || nmdef[i] == '\t');
--i )
;
Index: scan.c
***************
*** 1161,1165 ****
for ( i = strlen( (char *) nmdef ) - 1;
i >= 0 &&
! nmdef[i] == ' ' || nmdef[i] == '\t';
--i )
;
--- 1161,1165 ----
for ( i = strlen( (char *) nmdef ) - 1;
i >= 0 &&
! (nmdef[i] == ' ' || nmdef[i] == '\t');
--i )
;
--
Chip Salzenberg at Teltronics/TCT <chip@tct.com>, <73717.366@compuserve.com>
"Informix 4GL is not a 4G, and it's barely an L." -- John Tombs